package cn.lingyangwl.agile.model;

import cn.lingyangwl.framework.tool.core.tree.TreeNode;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author shenguangyang
 */
@Getter
@Setter
public class TreeSelectResp implements TreeNode<String, TreeSelectResp> {
    private String id;

    private String name;

    private Boolean disabled = false;

    private String parentId;

    private List<TreeSelectResp> children;

    @Override
    public String treeId() {
        return this.id;
    }

    @Override
    public void treeId(String treeId) {
        this.id = treeId;

    }

    @Override
    public String treeParentId() {
        return this.parentId;
    }

    @Override
    public void treeParentId(String parentId) {
        this.parentId = parentId;
    }

    @Override
    public List<TreeSelectResp> children() {
        return this.children;
    }

    @Override
    public String name() {
        return this.name;
    }

    @Override
    public void children(List<TreeSelectResp> children) {
        this.children = children;
    }
}
